﻿// Partial Copyright (c) LogoUI Software Solutions LTD
// Author: Vladislav Spivak
// This source file is the part of LogoFX Framework http://logofx.codeplex.com
// See accompanying licences and credits.

//based on, but not limited to http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/03/09/mef-and-the-deploymentcatalog.aspx

#if SILVERLIGHT

using System.Collections.Generic;
using System.Windows.Markup;

namespace LogoFX.Composition
{
  [ContentProperty("ConfigurationGroups")]
  public class DeploymentCatalogConfig
  {
    public DeploymentCatalogConfig()
    {
      this.ConfigurationGroups = new List<DeploymentCatalogConfigGroup>();
    }
    public List<DeploymentCatalogConfigGroup> ConfigurationGroups
    {
      get; private set;
    }
    public static DeploymentCatalogConfig LoadFromXaml(string xaml)
    {
      return (XamlReader.Load(xaml) as DeploymentCatalogConfig);
    }
  } 
}
#endif
